class HomeController < ApplicationController

  def index
    @comments   = Comment.find  :all, :order => 'created_at desc',  :limit => 5
    @songs      = Song.find     :all, :order => 'created_at desc',  :limit => 5
    @shows      = Show.find     :all, :order => 'start_time asc',   :limit => 5, :conditions => ["start_time > ?", Time.now]
    @videos     = Video.find    :all, :order => 'created_at desc',  :limit => 4
    @photos     = Photo.find    :all, :order => 'created_at desc',  :limit => 5, :conditions => ["thumbnail IS ?", nil]
    @blog_posts = BlogPost.find :all, :order => 'created_at desc',  :limit => 1
  end
protected
end
